package com.itheima.d4_jdk8_time;

import java.time.Instant;
import java.time.LocalDate;
import java.time.Period;

public class Test7_Period {
    public static void main(String[] args) {

        LocalDate ld1 = LocalDate.of(2029, 8, 10);
        LocalDate ld2 = LocalDate.of(2029, 8, 15);

        Period p = Period.between(ld1, ld2);
        System.out.println(p.getDays());


        Instant i1 = Instant.now();
        System.out.println(i1);
    }

}
